Google News
logo
ReactJS - Quiz(MCQ)
What should the console read when the following code is run?

const [, , animal] = ['Horse', 'Mouse', 'Cat'];
console.log(animal);​
A)
Horse
B)
Cat 
C)
Mouse
D)
None of the above

Correct Answer :   Cat